# Auth:	gong_libin
# Date:	2016_01_01

CC = g++
CFLAGS = -g -Wall

GLB_TEST = GlbTest

OBJECTS =				\
	GlbBson.o

all: $(OBJECTS) $(GLB_TEST)

$(OBJECTS): %.o: %.cpp
	$(CC) -c $(CFLAGS) -I/usr/local/include/libbson-1.0 $< -o $@

$(GLB_TEST): GlbTest.cpp
	$(CC) $(CFLAGS) -I/usr/local/include/libbson-1.0 $< $(OBJECTS) -o $@ -lbson-1.0

clean:
	rm -rf $(OBJECTS)
	rm -rf $(GLB_TEST)
